package com.gullmall.search.entity.vo;

import com.gullmall.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

@Data
public class SearchResult {
    //查到的所有商品信息
    private List<SkuEsModel> skuEsModels;
    private Integer pageNum;//当前页
    private Long total;//总条数
    private Long totalPage;//总页数

    //当前查到的结果所涉及的品牌
    private List<BrandVo> brandVos;
    //当前查到的结果所涉及的属性
    private List<AttrVo> attrVos;
    //锁涉及的分类
    private List<CatalogVo> catalogVos;

    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }
}
